package com.technology.education.data.model

/**
 * 积分提现详情
 * @param alipayName    支付宝名称	string
 * @param alipayNo    支付宝账号	string
 * @param createTime    提现时间	string(date-time)
 * @param expend    消耗	number
 * @param id    单号	string
 * @param money    提现金额	number
 * @param remarks    备注	string
 * @param wechatPayCode    微信二维码	string
 * @param withdrawAuditState    提现审核状态 0待审核 1通过 2不通过	string
 * @param withdrawChannel    0支付宝 1微信
 */
data class WithdrawOrderDetailModel(
    val alipayName: String?,
    val alipayNo: String?,
    val createTime: String,
    val expend: Int,
    val id: String,
    val money: Int,
    val remarks: String?,
    val wechatPayCode: String?,
    val withdrawAuditState: String,
    /**
     * 0支付宝 1微信
     */
    val withdrawChannel: String
) {
    val withdrawStr: String get() = if (withdrawAuditState == "2") "微信" else "支付宝"
}